import type { Meta, StoryObj } from '@storybook/vue3-vite';

import PromptEditor from './index.vue';

const meta: Meta<typeof PromptEditor> = {
  title: 'text/Prompt编辑器',
  component: PromptEditor,
  parameters: {
    layout: 'centered'
  },
  argTypes: {
    initialContent: {
      control: { type: 'text' },
      description: '编辑器初始内容'
    },
    placeholder: {
      control: { type: 'text' },
      description: '占位符文本'
    }
  }
};

export default meta;

type Story = StoryObj<typeof PromptEditor>;

// 默认故事
export const Default: Story = {
  args: {
    initialContent: '',
    placeholder: '请输入您的提示文本...'
  }
};

// 带初始内容的故事
export const WithInitialContent: Story = {
  args: {
    initialContent: '这是一个示例Prompt: {{user_input}}',
    placeholder: '请输入您的提示文本...'
  }
};

// 自定义占位符的故事
export const CustomPlaceholder: Story = {
  args: {
    initialContent: '',
    placeholder: '在此输入您的AI提示词...'
  }
};

